package io.impl;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import io.FileCreater;

/**
 * 文件生成接口实现类
 * @author WUJA13
 *
 */
public class FileCreaterImpl implements FileCreater{

	@Override
	public OutputStream createFile(String fileName) {
		try{
			File file = new File(fileName);
			return new FileOutputStream(file);
		}catch(IOException e){
			e.printStackTrace();
		}
		return null;
	}

	
}
